projects
/
cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c920613
)
fix fatal condition
author
Liigo Zhuang
<com.liigo@gmail.com>
Mon, 15 Dec 2014 00:41:43 +0000
(08:41 +0800)
committer
Liigo Zhuang
<com.liigo@gmail.com>
Mon, 15 Dec 2014 00:41:43 +0000
(08:41 +0800)
src/cargo/lib.rs
patch
|
blob
|
history
diff --git
a/src/cargo/lib.rs
b/src/cargo/lib.rs
index 8943c3e5d0a7199bfcf8bba1984aafdd5e1952e3..0c3459de9cc43a724ae8b9ef039871c9de653651 100644
(file)
--- a/
src/cargo/lib.rs
+++ b/
src/cargo/lib.rs
@@
-199,7
+199,7
@@
pub fn handle_error(err: CliError, shell: &mut MultiShell) {
let CliError { error, exit_code, unknown } = err;
let verbose = shell.get_verbose();
- let fatal = exit_code
== 1
; // exit_code == 0 is non-fatal error
+ let fatal = exit_code
!= 0
; // exit_code == 0 is non-fatal error
if unknown {
output(Some("An unknown error occurred".to_string()), None, shell, fatal);